package com.ruoyi.park.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 绿化管理对象 omp_wy_green_management
 *
 * @author cjie
 * @date 2021-07-22
 */
@Data
@ApiModel
public class WyGreenManagement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 绿化区域Id */
    @Excel(name = "绿化区域Id")
    @ApiModelProperty(value = "绿化区域Id")
    private String greenAreaId;

    /** 园区Id */
    @Excel(name = "园区Id")
    @ApiModelProperty(value = "园区Id")
    private String parkId;

    /** 计划安排 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计划安排", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划安排")
    private Date planTime;

    /** 责任人Id */
    @Excel(name = "责任人Id")
    @ApiModelProperty(value = "责任人Id")
    private String liableId;

    /** 领料 */
    @Excel(name = "领料")
    @ApiModelProperty(value = "领料")
    private String material;

    /** 执行结果(0未开始，1执行中，2已完成) */
    @Excel(name = "执行结果(0未开始，1执行中，2已完成)")
    @ApiModelProperty(value = "执行结果(0未开始，1执行中，2已完成)")
    private String result;

    /** 删除标志(0正常 1删除) */
    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String delFlag;

    /** 租户Id */
    @Excel(name = "租户Id")
    @ApiModelProperty(value = "租户Id")
    private String tenantId;

    //以下属性为页面视图属性
    /** 绿化区域 */
    @Excel(name = "绿化区域")
    @ApiModelProperty(value = "绿化区域")
    private String areaName;

    /** 园区编号 */
    @Excel(name = "园区编号")
    @ApiModelProperty(value = "园区编号")
    private String parkNum;

    /** 姓名 */
    @Excel(name = "姓名")
    @ApiModelProperty(value = "姓名")
    private String userName;

    /** 领用物资集合 */
    @ApiModelProperty(value = "领用物资集合")
    private List<WyRequisitionDetail> requisitionDetailList;

}
